package com.lingnan.blog.service;

import com.lingnan.blog.entity.TimeTravel;
import com.lingnan.blog.mapper.TimeTravelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class TimeTravelService {
    @Autowired
    private TimeTravelMapper timeTravelMapper;

    public List<TimeTravel> findAll() {
        return timeTravelMapper.selectAll();
    }
}
